//////////////////////////////////////////////
// Checking Functions
// Created by: locdo
//////////////////////////////////////////////

function isValidEmail(email){	
	return (/^(\w+[\-\.])*\w+@(\w+\.)+[A-Za-z]+$/).test(email);
}
function isValidUsername(username){
	// Accept only a-z, 0-9 and 4-30 characters
	return (/^[a-z0-9_-]{4,30}$/).test(username);
}